-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds required/optional tag option to accordion #1881
Conversation
Deploying radiance-ui with Cloudflare Pages
|
/** show if the photo is required */ | ||
isRequired?: boolean; | ||
/** when true, shows Required/Optional tag */ | ||
showRequiredTag?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might change the name of showRequiredTag
to something like displayRequiredOrOptionalText
.
The naming as is feels too similar to isRequired
. Even with the comment block, I didn't fully understand the point of having both variables until looking at the actual code that references them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea, I'll make the change!
isRequired
will show the text "Required" or "Optional" if theshowRequiredTag
property is set to "true"